package org.hugoduncan.appam.model;

import java.io.IOException;

import javax.servlet.ServletException;

import org.apache.abdera.model.Entry;
import org.hugoduncan.appam.server.AppServletRequest;
import org.hugoduncan.appam.server.AppServletResponse;

/**
 * Interface for items that can handle APP requests
 * @author duncanhugo
 *
 */
public interface AppRequestHandler
{
    /**
     * Process a request,
     * @param request
     * @param response
     * @return a representation of the Entry operated pon, for updating the containing collection
     */
    Entry process(AppServletRequest request, AppServletResponse response)
        throws ServletException, IOException;
}
